package com.longxiao.vo;

import com.longxiao.validator.anno.ValiNumber;

/**
 * 查询站内信请求
 *
 * @author kunyang
 */
public class QueryMessagesVo {

    /** 客户端版本号 */
    private String version;

    /** 用户标识 */
    private String userId;

    /** 页码 */
    @ValiNumber(min = 1, max = 9999, err = "请求参数错误")
    private int page;

    /** 每页数量 */
    @ValiNumber(min = 1, max = 9999, err = "请求参数错误")
    private int rows;

    @Override
    public String toString() {
        return "QueryMessagesVo{" +
                "version='" + version + '\'' +
                ", userId='" + userId + '\'' +
                ", page=" + page +
                ", rows=" + rows +
                '}';
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }
}
